﻿<UserControl x:Class="TrailMapManager.Modules.Overview.View.OverviewMainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="800">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!--<ResourceDictionary Source="/ModernControls;component/Style.xaml"/>-->
                <ResourceDictionary>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock Text="{Binding CommMan.PhoneName}" FontFamily="Segoe UI Light" FontSize="36"/>

        <!--List summary-->
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="90"/>
                <RowDefinition Height="50"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>


            <Grid Background="{StaticResource AppBaseBrush}" Width="200" Height="200" Grid.Column="0">
                <TextBlock Text="maps" Foreground="White" FontSize="18" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <TextBlock Text="{Binding CommMan.MapsCount}" FontSize="120" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Segoe UI Light" Foreground="White"/>
            </Grid>


            <Grid Background="{StaticResource AppBaseBrush}" Width="200" Height="200" Grid.Column="1">
                <TextBlock Text="tracks" Foreground="White" FontSize="18" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <TextBlock Text="{Binding TrackMan.TracksCount}" FontSize="120" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Segoe UI Light" Foreground="White"/>
            </Grid>



            <Grid Background="{StaticResource AppBaseBrush}" Width="200" Height="200" Grid.Column="2">
                <TextBlock Text="pois" Foreground="White" FontSize="18" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <TextBlock Text="{Binding PoiMan.PoiCount}" FontSize="120" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Segoe UI Light" Foreground="White"/>
            </Grid>

            <StackPanel Grid.Row="1" Grid.ColumnSpan="3">
                <TextBlock Text="for connecting TrailMap please use this ip address:" FontSize="18" HorizontalAlignment="Center" Foreground="Gray"/>
                <TextBlock Text="{Binding LocalIpAddress}" FontSize="28" HorizontalAlignment="Center" Foreground="Gray" FontFamily="Segoe UI Light"/>
            </StackPanel>

            <StackPanel Grid.Row="2"
                        Grid.Column="2"
                        Width="200"
                        HorizontalAlignment="Right"
                        Background="{StaticResource AppBaseBrush}"
                        Orientation="Horizontal">
                <TextBlock Text="Pending Commands:" VerticalAlignment="Center" Margin="10,5,0,0"
                           Foreground="White"
                           FontSize="16"/>
                <TextBlock Text="{Binding CommMan.PendingCommandsCount}" 
                           VerticalAlignment="Center"
                           Margin="10,5,0,0"
                           Foreground="White"
                           FontSize="20"/>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
